import React from 'react'
import {$pre} from "../../../../http/http"
import {Swiper} from "antd-mobile"
export default function Banner(props) {
    let {banner} = props
  return (
    <Swiper autoplay style={{"--height":"3.8rem"}}>
        {
          banner.map(item=>{
              return <Swiper.Item key={item.id}>
                <img style={{width:"100%",height:"100%"}} alt="" src={$pre+item.img}></img>
              </Swiper.Item>
          })
        }
    </Swiper>
  )
}

